<?php


namespace app\api\model;


use think\Model;

class Member extends Model
{
    public static function register($data): bool
    {
        $memberData = self::where('member_mobile', '=', $data['member_mobile'])->find();
        if (!empty($memberData)) return false;
        self::insert($data);
        return true;
    }
}
